home *** CD-ROM | disk | FTP | other *** search
/ Crosscountry USA Photo Safari / Crosscountry USA Photo Safari.iso / Data / cc_base / pak00_16bit_f.pk3 / main_menu.gl.p < prev    next >
Text File  |  2003-01-10  |  5KB  |  203 lines

  1. {
  2.   ActiveWhileHidden = TRUE;
  3.   Hidden = TRUE;
  4.   ChildID = {
  5.     GuiAnimation("plate") {
  6.       AnimationID = "anim/guage_gui/guage_window.pcx";
  7.       X = 0;
  8.       Y = 0;
  9.       Width = 340;
  10.       Height = 410;
  11.     },          
  12.  
  13.     GuiAnimation("guages") {
  14.       AnimationID = "anim/guage_gui/window/guagy.anm";
  15.       X = 0;
  16.       Y = 0;
  17.       Width = 340;
  18.       Height = 360;
  19.     },
  20.  
  21.         GuiButton("new_game_button") {
  22.       X = 110;
  23.       Y = 40;
  24.       TextID = Mangle(155/*"New Game"*/);
  25.       StyleID = "gui/bs/square.gbs";
  26.       FontID = "font/square_black_on_gray_9.tf";
  27.       Width = 160;
  28.       AutoSize = HEIGHT;
  29.       ScriptID = Script {
  30.         @activate { 
  31.           resid mc;
  32.           
  33.              mc = ResByName("splash_screen.gl/menu_controller");
  34.           ResPropSetResID(mc,"panel_to_display", ResByName("game_setup.gl"));
  35.           
  36.         }
  37.       };
  38.     },
  39.  
  40.         GuiButton("load_button") {
  41.       X = 110;
  42.       Y = 80;
  43.       TextID = Mangle(156/*"Load Game"*/);
  44.       StyleID = "gui/bs/square.gbs";
  45.       FontID = "font/square_black_on_gray_9.tf";
  46.       Width = 160;
  47.       AutoSize = HEIGHT;
  48.       ScriptID = Script {
  49.         @activate { 
  50.           resid mc;
  51.           
  52.              mc = ResByName("splash_screen.gl/menu_controller");
  53.           ResPropSetResID(mc,"panel_to_display", ResByName("load_saved_game.gl"));
  54.  
  55.         }
  56.       };
  57.     },
  58.  
  59.         GuiButton("load_scenario_button") {
  60.       X = 110;
  61.       Y = 120;
  62.       TextID = Mangle(157/*"Load Scenario"*/);
  63.       StyleID = "gui/bs/square.gbs";
  64.       FontID = "font/square_black_on_gray_9.tf";
  65.       Width = 160;
  66.       AutoSize = HEIGHT;
  67.       ScriptID = Script {
  68.         @activate { 
  69.           resid mc;
  70.           
  71.              mc = ResByName("splash_screen.gl/menu_controller");
  72.           ResPropSetResID(mc,"panel_to_display", ResByName("load_scenario.gl"));
  73.  
  74.         }
  75.       };
  76.     },
  77.  
  78.         GuiButton("game_options_button") {
  79.       X = 110;
  80.       Y = 160;
  81.       TextID = Mangle(158/*"Options"*/);
  82.       StyleID = "gui/bs/square.gbs";
  83.       FontID = "font/square_black_on_gray_9.tf";
  84.       Width = 160;
  85.       AutoSize = HEIGHT;
  86.       ScriptID = Script {
  87.         @activate { 
  88.           resid mc;
  89.              
  90.              mc = ResByName("splash_screen.gl/menu_controller");
  91.           ResPropSetResID(mc,"panel_to_display", ResByName("game_options.gl"));
  92.  
  93.         }
  94.       };
  95.     },
  96.  
  97.         GuiButton("credits_button") {
  98.       X = 110;
  99.       Y = 200;
  100.       TextID = Mangle(159/*"Credits"*/);
  101.       StyleID = "gui/bs/square.gbs";
  102.       FontID = "font/square_black_on_gray_9.tf";
  103.       Width = 160;
  104.       AutoSize = HEIGHT;
  105.       ScriptID = Script {
  106.         @activate { 
  107.           resid mc;
  108.  
  109.              mc = ResByName("splash_screen.gl/menu_controller");
  110.           ResPropSetResID(mc,"panel_to_display", ResByName("credits.gl"));
  111.  
  112.         }
  113.       };
  114.     },
  115.  
  116.   
  117.         GuiButton("dashtest_button") {
  118.       X = 330;
  119.       Y = 290;
  120.       TextID = Mangle(160/*"Dash Test"*/);
  121.       StyleID = "gui/bs/square.gbs";
  122.       FontID = "font/square_black_on_gray_9.tf";
  123.       Width = 160;
  124.       AutoSize = HEIGHT;
  125.       Hidden = TRUE;
  126.       ScriptID = Script {
  127.         @loaded {
  128.           if (CVarGetInt("DashTest")) {
  129.             ResPropSetInt(SELF,"Hidden",FALSE);
  130.           }
  131.         }
  132.         @activate { 
  133.           release("floor");
  134.           mark("floor");
  135.           ResByName("dash_test.gl");
  136.         }
  137.       };
  138.     },    
  139.  
  140.     GuiButton("scenario_button") {
  141.       X = 110;
  142.       Y = 240;
  143.       TextID = Mangle(161/*"Scenario Creator"*/);
  144.       StyleID = "gui/bs/square.gbs";
  145.       FontID = "font/square_black_on_gray_9.tf";
  146.       Width = 160;
  147.       AutoSize = HEIGHT;
  148.       Hidden = True;
  149.       ScriptID = Script {
  150.         @loaded {
  151.           if (CVarGetInt("ScenarioCreator")) {
  152.             ResPropSetInt(SELF,"Hidden",FALSE);
  153.           }
  154.         }
  155.         @activate { 
  156.           release("floor");
  157.           mark("floor");
  158.           ResByName("scenario_wizard.gl");
  159.         }
  160.       };
  161.     },
  162.     GuiButton("tutorial_button") {
  163.       X = 110;
  164.       Y = 280;
  165.       TextID = Mangle(298/*"Show Me"*/);
  166.       StyleID = "gui/bs/square.gbs";
  167.       FontID = "font/square_black_on_gray_9.tf";
  168.       Width = 160;
  169.       AutoSize = HEIGHT;
  170.       Hidden = True;
  171.       ScriptID = Script {
  172.         @loaded {
  173.           if (CVarGetInt("Tutorial")) {
  174.             ResPropSetInt(SELF,"Hidden",FALSE);
  175.           }
  176.         }
  177.         @activate { 
  178.           release("floor");
  179.           mark("floor");
  180.           ResByName("tutorial/tutorial.gl");
  181.         }
  182.       };
  183.     },    
  184.     GuiButton("quit_button") {
  185.       X = 110;
  186.       Y = 320;
  187.       TextID = Mangle(162/*"Quit"*/);
  188.       StyleID = "gui/bs/square.gbs";
  189.       FontID = "font/square_black_on_gray_9.tf";
  190.       Width = 160;
  191.       AutoSize = HEIGHT;
  192.       ScriptID = Script {
  193.         @activate {
  194.  
  195.           Command("quit"); 
  196.         }
  197.       };
  198.     }
  199.  
  200.   };
  201.    
  202. }
  203.